﻿@model IEnumerable<vnMcdonald.Models.Order>
@{
    int i = 0;
    foreach (var item in Model)
    {
        i=i+1;
        <tr>
            <td class="text-center">@i</td>
            <td class="text-center">@Html.DisplayFor(modelItem => item.Codes)</td>
            <td class="text-center">@Html.DisplayFor(modelItem => item.TotalPrice)</td>
            <td class="text-center">@Html.DisplayFor(modelItem => item.CreateDate).ToString().Substring(0, 10)</td>
            <td class="text-center">@Html.DisplayFor(modelItem => item.Recipient)</td>
            <td class="text-center">
                <a href="@Url.Action("OrderView","admin",new { id=item.OrderId })" title="Xem" class="view"><span>Xem</span></a>
            </td>
        </tr>
    }
}
